package com.zheng.study.web.shiro.realm;

/**
 * 用户登录的 token
 * ============================================================================
 * author : fallenpanda
 * createDate:  2018/8/17 。
 * ============================================================================
 */
public class StatelessLoginToken extends StatelessBaseToken {
	private static final long serialVersionUID = -8838746218893385417L;

	private String username;
	private String password;

	public StatelessLoginToken(String username, String password) {
		this.username = username;
		this.password = password;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Object getPrincipal() {
		return username;
	}

	public Object getCredentials() {
		return password;
	}
}
